# coding: utf-8

import sip
import config
import app.tools as tool
from PyQt4 import QtCore, QtGui
from PyQt4.QtCore import Qt, SIGNAL
from app.tools.dialog import MessageBox
from app.ui.icon import Icon
from app.ui.tab.tab_page_base import TabPageBase


class TabPageHelp(TabPageBase):

    def __init__(self, tab, name):
        super(TabPageHelp, self).__init__(tab, name)
        self.tab_widget_page = self.get_instance()
        self.label = QtGui.QLabel(self.tab_widget_page)
        self.label.setAlignment(Qt.AlignHCenter)
        self.label.setText(tool._from_utf8('Help: redis desktop manager'))


    def close(self):
        tab_widget = self.tab_widget_page.parent()
        tab_widget.removeWidget(self.tab_widget_page)
        self.tab_widget_page.close()